<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
  <link rel="stylesheet" type="text/css" href="../../layui/css/layui.css" />
</head>

<body>
  <div id="app">
    <div class="layui-form layui-form-pane">
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">binder指令:</label>
          <div class="layui-input-inline" v-each="layui.source" mark="arr" style="width: 200px;">
            <input type="checkbox" name="module" lay-filter="module" :value="{{arr.id}}" :title="{{arr.name}}" />
          </div>
        </div>
      </div>
    </div>
  </div>
  <script type="text/javascript" src="../plugin/jquery.min.js"></script>
  <script type="text/javascript" src="../plugin/lodash.min.js"></script>
  <script type="text/javascript" src="../../layui/layui.js"></script>
  <script>
    layui.extend({
      binder: "../../layui_exts/binder/binder",
    }).use(['form','binder'], function () {
      var app = new layui.binder({
        el: "#app",
        data: {
          layui: {
            source: [{
              id: 1,
              name: "vform",
            }, {
              id: 2,
              name: "vtable",
            }]
          }
        },
        mounted(){
          layui.form.render();
        }
      });
    });
  </script>
</body>

</html>